package com.shyroke.daydayzhuanweb.controller;

import com.shyroke.daydayzhuanapi.dto.AdminProjectPartDto;
import com.shyroke.daydayzhuanapi.dto.AdminProjectPartTypeDto;
import com.shyroke.daydayzhuansvc.service.impl.ProjectPartService;
import com.shyroke.daydayzhuansvc.service.impl.ProjectPartTypeService;
import com.shyroke.daydayzhuansvc.util.Page;
import com.shyroke.daydayzhuansvc.util.TabelData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 类名 ：管理员管理项目
 * 用法 ：
 * 创建人 ： shyroke
 * 时间：2018/12/28 12:38
 */
@Controller
@RequestMapping(value = "admin/project/part/type")
public class AdminProjectPartTypeController {

    @Autowired
    private ProjectPartTypeService service;

    /**
     * 文章组合列表
     * @return
     */
    @RequestMapping(value = "query")
    @ResponseBody
    public TabelData<AdminProjectPartTypeDto> query(Page page) {
        return  service.query(page);

    }

}
